package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.DsstoreBillDelivery;
import cn.stylefeng.guns.sys.modular.system.model.params.DsstoreBillDeliveryParam;
import cn.stylefeng.guns.sys.modular.system.model.result.DsstoreBillDeliveryResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author jiangge
 * @since 2021-07-12
 */
public interface DsstoreBillDeliveryMapper extends BaseMapper<DsstoreBillDelivery> {

    /**
     * 获取列表
     *
     * @author jiangge
     * @Date 2021-07-12
     */
    List<DsstoreBillDeliveryResult> customList(@Param("paramCondition") DsstoreBillDeliveryParam paramCondition);

    /**
     * 获取map列表
     *
     * @author jiangge
     * @Date 2021-07-12
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") DsstoreBillDeliveryParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author jiangge
     * @Date 2021-07-12
     */
    Page<DsstoreBillDeliveryResult> customPageList(@Param("page") Page page, @Param("paramCondition") DsstoreBillDeliveryParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author jiangge
     * @Date 2021-07-12
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") DsstoreBillDeliveryParam paramCondition);

    void deleteDataByDay(@Param("day") String day);

    void deleteDataByDay2(@Param("day") String day);

    Page<DsstoreBillDeliveryResult>  findPageByParam(Page pageContext, @Param("paramCondition") DsstoreBillDeliveryParam param);

    DsstoreBillDeliveryResult getViewDataById(@Param("id")String id);

    List<DsstoreBillDeliveryResult> getViewDataListById(@Param("list")List<String> list);

    List<DsstoreBillDeliveryResult> findListByParam(@Param("paramCondition")DsstoreBillDeliveryParam param);
}
